<?php
// $str = "<script type='text/javascript'>alert();</script>";
//$pat = "/(<script[\w\W]*>[\w\W]*<\/script>)/";
//$str = preg_replace($pat, "echo '$1';", $str);
//echo htmlspecialchars($str) . "<br>";
//echo substr($str,strrpos($str,'/')+1);
//function a(){
//    global $i;
//    $i = '123131321';
//}
//function b(){
//    global $i;
//    echo $i;
//}
//a();
//b();
//class R{
//    private $tt = array('a');
//    function a(){
//        $rr = array('a'=>'456');
//        //echo $this->tt;
//        echo $rr[$this->tt[0]];
//    }
//}
//$t = new R();
//$t->a();
//$data = array (
//    "foo" => "146546541321321",
//    "query" => "Nettuts",
//    "action" => "Submit"
//);
//$handle = curl_init();
//curl_setopt($handle,CURLOPT_URL,'http://localhost:1080/TestCommonPHP/output_post.php');
//curl_setopt($handle,CURLOPT_POST,TRUE);
//curl_setopt($handle,CURLOPT_POSTFIELDS,$data);
//curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);
//$output = curl_exec($handle);
//curl_close($handle);
//echo $output;

if(FALSE)    echo '987987';
else    echo '23211321';
?>
